<?php

/* 
 * Copyright (c) 2009 Nguyen Duc Thuan <me@ndthuan.com>
 * All rights reserved.
 */

class Fete_View_Helper_InlineCss extends Fete_View_Helper
{
    protected $_css = '';

    public function &inlineCss()
    {
        return $this;
    }

    public function &prepend($css)
    {
        $this->_css = $css . $this->_css;

        return $this;
    }

    public function &append($css)
    {
        $this->_css .= $css;

        return $this;
    }

    public function __toString()
    {
        return '<style type="text/css">' . "\n"
        . $this->_css . "\n" . '</style>';
    }
}